/**
  ETFRoot project, Anyang Normal University && IMP-CAS
  \class ETFTstart
  \brief a plastic scintillator placed at F1 of RIBLL2, single-ended
  \author SUN Yazhou, asia.rabbit@163.com
  \since 2022-04-26
  \date 2022-04-26 last modified
  \attention
  changelog
  <table>
  <tr>  <th>Date         <th>Author      <th>Description                   </tr>
  <tr>  <td>2022-04-26   <td>Asia Sun    <td>file created                  </tr>
  </table>

  \copyright Copyright (c) 2021 Anyang Normal U. && IMP-CAS with LGPLv3 LICENSE
*/

#ifndef ETFTstart_h
#define ETFTstart_h

#include "ETFTimer.h"

class TClonesArray;
class ETFHPTDCChannel;
class ETFPlaHit;

class ETFTstart : public ETFTimer{
public:
  ETFTstart(){}
  ETFTstart(const char *name);
  virtual ~ETFTstart(){}

  virtual void Assign(const ETFHPTDCChannel *ch); ///< add the data channel to the detector

  virtual double GetTime() const; ///< get the timing signal of Tstart
  virtual int GetFiredStatus() const; ///< \retval fHits[0]->GetFiredStatus()

  ClassDef(ETFTstart, 1);

protected:
  /// \param stripId: 0-30, along x increasing direction
  /// \param vh: 0-1: v, h
  virtual void AddHit(const ETFHPTDCChannel *ch, bool vh);
};

#endif
